﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HtmlEscaping
{
    public partial class Main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void move_Click(object sender, EventArgs e)
        {
            TextBox newTB = new TextBox();
            Label newL = new Label();
            this.div4e.Controls.Add(newTB);
            this.div4e.Controls.Add(newL);
            string enteredText = this.source.Text;
            newTB.Text = Server.HtmlEncode(enteredText);
            newL.Text = Server.HtmlEncode(enteredText);
        }
    }
}